package com.xyy.saas.payment.callback.core.handler;

import com.xyy.saas.payment.common.Constants;
import com.xyy.saas.payment.util.JSONUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ClearHandler implements BaseHandler {
    /**
     * 方法
     */
    @Override
    public String getMethod() {
        return Constants.METHOD_CLEAR__NAME;
    }

    /**
     * 处理回调
     */
    @Override
    public boolean callBackHandler(Object domain) {
        log.info("ClearHandler#callBackHandler domain={}", JSONUtils.toJSON(domain));
        /**
         * 暂不处理清算通知
         */
        return true;
    }
}
